package cn.edu.scau.cmi.luochenghao.chapter08;

abstract class InputAlphabet {
	public abstract void input();
}

class InputEnglish extends InputAlphabet {
	public void input(){
		for(char c='a';c<='z';c++) {
			System.out.printf("%3c",c);
		}
	}
}

class ShowBoard {
	void showMess(InputAlphabet show) {
		show.input();
	}
}

public class Example8_2 {

	public static void main(String[] args) {
		ShowBoard board=new ShowBoard();
		board.showMess(new InputEnglish());
		board.showMess(new InputAlphabet() {
			public void input() {
				for(char c='α';c<='ω';c++) {
					System.out.printf("%3c",c);
				}
			}
		});
	}

}
